package com.ogawa.jopai.devicemanage.dialog

import android.content.Context
import android.view.LayoutInflater
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import com.ogawa.joypal.devicemanage.R

class ShareDeviceMessageDialog {
    fun show(context: Context) {
        val alertDialog =
            AlertDialog.Builder(context,R.style.BaseDialog).create()
        val view = LayoutInflater.from(context)
            .inflate(R.layout.dialog_share_device_message, null)
        view.findViewById<TextView>(R.id.refuseButton).setOnClickListener { alertDialog.dismiss() }
        view.findViewById<TextView>(R.id.acceptBt).setOnClickListener { alertDialog.dismiss() }
        alertDialog.setView(view)
        alertDialog.show()
    }
}